package com.quantanetwork.esm.port;

import java.util.HashMap;

/**
* Company: QuantaNetwork BeiJing Ltd
* Author : 张彦龙
* DateTime: Nov 25, 2008  4:43:53 PM
*/
public class IdenifyMethodFactory
{
	static HashMap<Integer, IdentifyMethod> map = new HashMap<Integer, IdentifyMethod>();
	static
	{
		map.put(80, new HttpIndentifyMethod());
		map.put(8080, new HttpIndentifyMethod());
		map.put(8090, new HttpIndentifyMethod());
		map.put(161, new SnmpIndentifyMethod());
	}

	public static IdentifyMethod getIndentify(int port)
	{
		if (map.get(port) == null)
		{
			return new IdentifyDefault();
		}
		return map.get(port);
	}
}
